package try_catch深入.test02;

import javax.crypto.spec.PSource;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ExceptionTest02 {
    public static void main(String[] args) {
        try {
            FileInputStream fis = new FileInputStream("D:\\我的世界\\我的世界种子.txt");
            System.out.println(100/0);
        }catch(FileNotFoundException | ArithmeticException e){  //java 8 新特性
            System.out.println("文件不存在");
        }

    }
}
